<template>
  <div class="app-container">
    <!-- <div class="title">未知资产管理</div> -->
    <div class="hk-flex tab-area" style="">
      <div class="tab-list hk-flex">
        <img style="width: 100px" :src="require('@/assets/images/clues_count_view.png')" alt="" />
        <div class="total-area" style="">
          <p class="font-size16 total-title">全部未知设备</p>
          <span class="font-c-blue" :title="allCountData.count">{{ allCountData.count ? (allCountData.count>99999?'99999+':allCountData.count) : 0 }}</span>
        </div>
      </div>
      <div class="tab-list tab-bg hk-flex">
        <div class="tab-text">
          <p class="font-size14">未标记</p>
          <span class="font-c-black">{{ allCountData.unSignCount ? allCountData.unSignCount : 0 }}</span>
        </div>
      </div>
      <div class="tab-list tab-bg hk-flex">
        <div class="tab-text">
          <p class="font-size14">已标记</p>
          <span class="font-c-black">{{ allCountData.signCount ? allCountData.signCount : 0 }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CluesCountViewer',
  props: {
    allCountData: {
      type: Object,
      default() {
        return {}
      },
    },
  },
}
</script>

<style lang="scss" scoped>
#app.dark-theme{
  .total-title,.font-c-black{color:#fff !important;}
  .tab-bg{
    background: rgba(59, 139, 255, 0.1) !important;
    color:#fff !important;
  }
}
.title {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.85);
  text-align: left;
  font-weight: 600;
  height: 60px;
}
.tab-area {
  height: 97px;
  justify-content: flex-start;
  column-gap: 20px;
}
.total-area {
  width: 124px;
  margin-left: 12px;
}

.font-size16 {
  font-size: 16px;
}
.total-title {
  margin-bottom: 15px;
  margin-top: 6px;
  line-height: 24px;
}

.font-size14 {
  font-size: 14px;
}

.font-c-blue {
  color: #4b6eef;
  font-size: 36px;
}

.font-c-black {
  color: #333;
  font-size: 30px;
  font-weight: 500;
}

.tab-bg {
  background: #f3f5fb;
  padding: 20px;
  border-radius: 4px;
}

.tab-text {
  padding: 0 20px;
  min-width: 120px;

  p {
    margin: 0 0 10px 0 !important;
  }
}

.card-container {
  width: 246px;
  display: flex;
  margin-right: 20px;
  margin-bottom: 20px;
  justify-content: flex-start;
  align-items: center;
  padding: 0 15px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  // margin-bottom: 10px;
  cursor: pointer;

  &:last-child {
    margin-right: 0px;
  }

  .card-title {
    flex: 1;
  }

  .card-text {
    flex: 1;
    margin-left: 10px;
  }
}

.active {
  border-color: #2979ff;
  background: #e4eeff;
}

.card-num {
  color: #2979ff;
}
</style>
